<?php 
$form=$this->beginWidget('CActiveForm', array(
	'id'=>'user-form',
	'action'=>array('updateGroup','id'=>$model->id), 
	'enableAjaxValidation'=>false,
)); ?>
<div class='pvm phs'>
	<div class="left"><?php echo $form->label($model, 'group') ?></div>
	<div style="margin-left:200px;">
		<div>
			<b><?php echo $form->label($model, 'group_id') ?>:</b>
			<?php echo $form->dropDownList($model, 'group_id', CHtml::listData($groups, 'id', 'name')) ?>
		</div>
		<hr />
		<div>
			<b><?php echo $form->label($model, 'group_ids') ?>:</b>
			<div>
				<?php echo $form->checkBoxList($model, 'group_ids', CHtml::listData($groups, 'id', 'name')) ?>
			</div>
		</div>
		<hr />

		<div>
			<b><?php echo $form->label($model, 'display_group_id') ?>:</b>
			<?php echo $form->dropDownList($model, 'display_group_id', CHtml::listData($groups, 'id', 'name')) ?>
		</div>
		<hr />
		
		<?php echo CHtml::submitButton(Yii::t('common','Cập nhật'), array('class'=>'g-button buttonSubmit')) ?>
		<?php echo CHtml::resetButton(Yii::t('common','Hủy thay đổi'), array('class'=>'g-button buttonReset')) ?>

	</div>
</div>
<?php $this->endWidget(); ?>